package com.yx.frame.service;

import org.json.JSONException;
import org.json.JSONObject;

public class ServiceResult extends JSONObject {

	boolean serviceSuccess = true;
	String serviceMessage = "";

	public ServiceResult() {
	}
	public ServiceResult(String jsonStr)throws JSONException {
		super(jsonStr);
	}
	public boolean isServiceSuccess() {
		return serviceSuccess;
	}

	public void setServiceSuccess(boolean serviceSuccess) {
		this.serviceSuccess = serviceSuccess;
	}

	public String getServiceMessage() {
		return serviceMessage;
	}

	public void setServiceMessage(String serviceMessage) {
		this.serviceMessage = serviceMessage;
	}

	public String toString() {
		try {
			put("IsOK", serviceSuccess);
			put("Message", serviceMessage);
		} catch (Exception e) {
		}
		return super.toString();
	}
}
